﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>@ViewBag.Title</title>
    <link rel="stylesheet" type="text/css" href="../../Content/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../../Content/easyui/themes/icon.css">
    @Scripts.Render("~/bundles/jquery")
    <script type="text/javascript" src="../../Content/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../Content/easyui/EasyuiValidate.js"></script>
    <script type="text/javascript" src="../../Scripts/uploadify/UploadImage.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery.maskedinput.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../../Scripts/uploadify/uploadify.css">
    <link rel="stylesheet" type="text/css" href="../../Content/admin/style.css">

    <script src="@Url.Content("~/Scripts/uploadify/jquery.uploadify.js")" type="text/javascript"></script>

    <script type="text/javascript">
        function ToJavaScriptDate(value) {
            if (value == null)
                return "";
            var pattern = /Date\(([^)]+)\)/;
            var results = pattern.exec(value);
            var dt = new Date(parseFloat(results[1]));
            return (dt.getMonth() + 1) + "/" + dt.getDate() + "/" + dt.getFullYear();
        }
        var $time = Date.now || function () {
            return +new Date;
        };

        function addTab(title, content) {
            $("#tabContainer").tabs('add', {
                title: title,
                content: content,
                iconCls: 'icon-save',
                closable: true,
            });
        }
        $.extend($.fn.validatebox.defaults.rules, {
            equals: {
                validator: function (value, param) {
                    return value == $(param[0]).val();
                },
                message: 'Password do not match.'
            }
        });
    </script>
</head>
<body>
    @RenderBody()
</body>
</html>
